package cn.community.care.module.system.controller.admin.purchaseinfo.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.community.care.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.community.care.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 采购信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PurchaseInfoPageReqVO extends PageParam {

    @Schema(description = "采购订单号")
    private String purchaseOrderNum;

    @Schema(description = "采购日期")
    private String purchaseDate;

    @Schema(description = "供应商名称", example = "芋艿")
    private String supplierName;

    @Schema(description = "采购数量")
    private Integer quantity;

    @Schema(description = "采购单价", example = "6826")
    private String unitPrice;

    @Schema(description = "采购金额，总花费")
    private String totalAmount;

    @Schema(description = "采购负责人姓名", example = "李四")
    private String purchaserName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}